var that = this
function Payment(data,cb) {
   wx.requestPayment({
     appId:data.appId,
     nonceStr: data.nonceStr,
     package: data.package,
     paySign: data.paySign,
     signType:data.signType,
     timeStamp: data.timeStamp,
     'success':()=>{
        typeof cb == "function" && cb(1)
     },'fail':()=>{
        typeof cb == "function" && cb(0)
     }
   })
}

module.exports = {
  Payment:Payment
}